package org.dromara.system.cloud;


import lombok.Data;
import org.dromara.system.domain.SysMiniAdmin;
import org.dromara.system.domain.SysMiniBanner;

@Data
public class MiniBanner extends MiniBase{


    private Integer banner_type;

    private String img;

    private String url;

    private String title;

    private String author;

    private String context;
    public static MiniBanner build(SysMiniBanner sysMiniBanner){
        MiniBanner miniTenant = new MiniBanner();
        miniTenant.set_id(sysMiniBanner.getId().toString());
        miniTenant.setBanner_type(sysMiniBanner.getBannerType());
        miniTenant.setImg(sysMiniBanner.getImg());
        miniTenant.setUrl(sysMiniBanner.getUrl());
        miniTenant.setTitle(sysMiniBanner.getTitle());
        miniTenant.setAuthor(sysMiniBanner.getAuthor());
        miniTenant.setContext(sysMiniBanner.getContext());
        return miniTenant;
    }
}

